<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <head>
        <th:block th:include="include::header('奖品表')" />
    </head>
    <style>
        #febs-baseGoods .layui-table-body .layui-table-cell{
            height: 75px;
            line-height: 60px;
        }
    </style>
    <body class="febs-container" id="febs-baseGoods">
    <div class="febs-body layui-fluid" lay-title="奖品">
        <div class="febs-body-search">
            <form class="layui-form layui-table-form" lay-filter="baseGoods-table-form" id="baseGoods-table-form">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <div class="layui-inline" id="post-tenant" th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                                <label class="layui-form-label layui-form-label-sm">公司名称</label>
                                <div class="layui-input-inline" >
                                    <select name="tenantId" id="tenantId" lay-search="" >
                                        <option th:each="item:${tenantList }"
                                                th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                th:selected="${tenantId ==item.tenantId}">
                                    </select>
                                </div>
                            </div>


                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">奖品名称</label>
                                <div class="layui-input-inline" style="width:190px;">
                                    <input type="text" name="goodsName" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">状态</label>
                                <div class="layui-input-inline" style="width:190px;">
                                    <select name="status" id="status">
                                        <option value="1">启用</option>
                                        <option value="0">禁用</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div id="query" class="layui-btn ">
                                    <em class="layui-icon">&#xe615;</em> 查询
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="febs-table-full">
            <table lay-filter="baseGoodsTable" lay-data="{id: 'baseGoodsTable'}"></table>
        </div>
        <div class ="big-img-div" style="position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:1002;width:100%;height:100%;display:none;">
            <div style="position:absolute;">
                <img style="border:5px solid #fff;" src="">
            </div>
        </div>
    </div>
    <th:block th:include="include::foot" />
    <script th:src="@{/febs/js/base/baseGoods/baseGoodsList.js(v=1)}"></script>
    <script type="text/html" id="baseGoods-toolbar">
        <div lay-event="add" shiro:hasPermission="baseGoods:add" class="layui-btn layui-btn-sm">
            <em class="layui-icon">&#xe654;</em> 新增
        </div>
    </script>
    </body>
</html>
<script type="text/html" id="option">
    <span shiro:lacksPermission="baseGoods:edit,baseGoods:delete">
            <span class="layui-badge-dot febs-bg-orange"></span> 无权限
            </span>
    <a lay-event="edit" shiro:hasPermission="baseGoods:edit"><em class="layui-icon febs-edit-area febs-blue">&#xe7a4;</em></a>
    <a lay-event="del" shiro:hasPermission="baseGoods:delete"><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script type="text/html" id="statusOption">
    <input type="checkbox" name="statusOption" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
           lay-filter="statusOption" lay-event="statusEvent"  {{ d.status == '1' ? 'checked' : '' }} />
</script>
